package cz.proks.easyhelpdesk.api.model;

import java.util.Arrays;
import java.util.Date;

import cz.proks.easyhelpdesk.api.model.base.AnIdentifiableModel;

public class OAuth2Token extends AnIdentifiableModel {  
    private String providerId;
	private String accessToken;
	private String refreshToken;
	private String tokenType;
	private Date expirationDate;
	private String idToken;
	private String[] scopes;
	
	
	public String getProviderId() {
        return providerId;
    }
    public void setProviderId(String providerId) {
        this.providerId = providerId;
    }
    public String getAccessToken() {
		return accessToken;
	}
	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}
	public String getRefreshToken() {
		return refreshToken;
	}
	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}
	public String getTokenType() {
		return tokenType;
	}
	public void setTokenType(String tokenType) {
		this.tokenType = tokenType;
	}
	public Date getExpirationDate() {
		return expirationDate;
	}
	public void setExpirationDate(Date expirationDate) {
		this.expirationDate = expirationDate;
	}
	public String getIdToken() {
		return idToken;
	}
	public void setIdToken(String idToken) {
		this.idToken = idToken;
	}	
	public String[] getScopes() {
		return scopes;
	}
	public void setScopes(String[] scopes) {
		this.scopes = scopes;
	}
    
	@Override
    public String toString() {
        return "[id=" + getId() + ", providerId=" + providerId + ", accessToken=" + accessToken + ", refreshToken=" + refreshToken + ", tokenType=" + tokenType
                + ", expirationDate=" + expirationDate + ", idToken=" + idToken + ", scopes=" + Arrays.toString(scopes) + "]";
    }	
}
